#include <position.h>
#include <cursor.h>

extern Cursor cursor;

inline bool
Position::moved ()
{
	return x != cursor.x || y != cursor.y;
}

void
Position::move ()
{
	if (moved ())
	{
		x = cursor.x;
		y = cursor.y;
	}
}
